﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace NvinInstaller
{
    public partial class ApplyFeature : Form
    {
        Feature selectedFeature;

        public Feature SelectedFeature
        {
            get
            {
                return selectedFeature;
            }
            set
            {
                selectedFeature = value;
            }
        }

        public ApplyFeature()
        {
            InitializeComponent();
        }

        private void ApplyFeature_Load(object sender, EventArgs e)
        {
            // Fill feature list
            cmbFeatures.DataSource = ApplicationManager.GetApplicationManager().Properties.Features;
            cmbFeatures.DisplayMember = "Name";
        }

        private void cmbFeatures_SelectedIndexChanged(object sender, EventArgs e)
        {
            selectedFeature = (Feature)cmbFeatures.SelectedValue;
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
        }
    }
}
